package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dpmain.operatelog.OperateLogDo;
import com.qk.dto.OperateLog.OperateLogDto;
import com.qk.management.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @文件名: OperateLogController
 * @作者: DX
 * @创建日期: 2025/10/17
 * @描述:
 */
@RestController
@RequestMapping
public class OperateLogController {

    @Autowired
    private OperateLogService operateLogService;

    @GetMapping("/logs")
    public Result list(OperateLogDto dto) {

        PageResult<OperateLogDo> pageResult = operateLogService.listOperateLog(dto);

        return Result.success(pageResult);
    }
}
